package com.google.code.sip.ucenter.service;

import com.google.code.sip.core.dao.Page;
import com.google.code.sip.ucenter.model.Account;
import com.google.code.sip.ucenter.model.User;

public interface AccountManager {
	long getBalance(User user);

	/**
	 * * 更新用户秀币
	 * 
	 * @param userId
	 *            用户ID
	 * @param type
	 *            进账OR出帐
	 * @param amount
	 *            秀币额
	 * @param action
	 *            业务类型
	 * @param remark
	 *            备注
	 * @return
	 */
	void updateAccount(User user, String type, String action, long amount,
			String remark);

	/**
	 * 根据用户获取HuoshowAccount
	 * 
	 * @param user
	 */
	Account getLogByUser(User user);

	Page<Account> findLogByPage(Page<Account> page);
}